package com.aispeech.asr.apis.ssc.data.form;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.ToString;

@ToString
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class Option {
    int nSpeakers = 2;                  // 本次聚类的总人数 -1表示盲分。
//    int vadPause = 500;

//    public int getVadPause() {
//        return vadPause;
//    }
//
//    public void setVadPause(int vadPause) {
//        if (vadPause < 100 || vadPause > 2000)
//            vadPause = 500;
//
//        this.vadPause = vadPause;
//    }

    public int getnSpeakers() {
        return nSpeakers;
    }

    public void setnSpeakers(int nSpeakers) {
        if (nSpeakers < 1 || nSpeakers > 16)
            nSpeakers = -1;

        this.nSpeakers = nSpeakers;
    }
}
